import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'AutoMode',
    component: () => import('../components/AutoModePanel.vue'),
    meta: { title: '自动模式' }
  },
  {
    path: '/manual',
    name: 'ManualMode',
    component: () => import('../components/ManualModePanel.vue'),
    meta: { title: '手动模式' }
  },
  {
    path: '/standard',
    name: 'StandardMode',
    component: () => import('../components/StandardModePanel.vue'),
    meta: { title: '标准模式' }
  },
  {
    path: '/alignment-control',
    name: 'AlignmentControl',
    component: () => import('../components/AlignmentControlPanel.vue'),
    meta: { title: '对中控制标定' }
  },

  {
    path: '/calibration-control/:type',
    name: 'CalibrationControl',
    component: () => import('../components/CalibrationContentPanel.vue'),
    meta: { title: '标定控制' }
  },
  {
    path: '/warn-status',
    name: 'WarnStatus',
    component: () => import('../components/WarnStatusPanel.vue'),
    meta: { title: '警告状态' }
  },

  {
    path: '/detail',
    name: 'DetailInfo',
    component: () => import('../components/DetailInfoPanel.vue'),
    meta: { title: '手动模式' }
  },
  {
    path: '/manual/:tab',
    name: 'ManualContent',
    component: () => import('../components/ManualModePanel.vue'),
    children: [
      {
        path: 'comm',
        name: 'ManualCommContent',
        component: () => import('../components/ManualCommContentPanel.vue')
      },
      {
        path: 'center',
        name: 'CenterControl',
        component: () => import('../components/ManualCenterControlPanel.vue'),
        meta: { title: '对中控制' }
      }
    ],
    meta: { title: '手动内容' }
  }
  // 这里可以继续添加更多路由
]

export default routes
